 <?php
		  $row = 180;
		  $titlelen = 50;
		  $dsql->SetQuery("Select * from `#@__flink` where ischeck>0 order by sortrank asc");
		  $dsql->Execute();
		$revalue = "";
		for($i=1;$i<=$row;$i++)
		{

				if($dbrow=$dsql->GetObject())
				{
					$wtitle = cn_substr($dbrow->webname,$titlelen);
					if($dbrow->logo=="")
						$revalue.= "<div style='float: left; margin-left: 20px; margin-top: 20px;'><a href='".$dbrow->url."' target='_blank'>$wtitle</a></div>";
					else
						$revalue.= "<div style='float: left; margin-left: 20px; margin-top: 20px;'><a href='".$dbrow->url."' target='_blank'><img src='".$dbrow->logo."' width='135' height='60' border='0' alt='$wtitle'></a></div>";
				}
			if(!$dbrow) break;
		}
		echo  $revalue;
?>